﻿<html><head></head>
<body>

<div><br></div><div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><b>目录结构</b></font></div><div><font class="Apple-style-span" face="Consolas"><b><br></b></font></div><div><font class="Apple-style-span" face="Consolas"><pre class="code"><pre><code class="hljs css"><span class="hljs-tag">pro</span>
├─ <span class="hljs-tag"><b><font class="Apple-style-span" color="#ff0000">addons</font></b></span>  ………………………………………… 【模块安装目录】 (意为附加组件)
│  ├─ <span class="hljs-tag">business</span>  …………………………………… 模块的名称  (示例)
│  │  ├─ <span class="hljs-tag">images</span>                             建议 <span class="hljs-tag">css</span> 文件也放此目录.
│  │  ├─ <span class="hljs-tag">template</span>                           模板目录
│  │  │  ├─ <span class="hljs-tag">mobile</span>                         <span class="hljs-tag">APP</span> 端模板目录
│  │  │  │  └─ <span class="hljs-tag">mobile</span><span class="hljs-class">.html</span>                 <font class="Apple-style-span" color="#ff0000"><span class="hljs-tag">APP</span> 端模板文件</font>
│  │  │  └─ <span class="hljs-tag">web</span><span class="hljs-class">.html</span>                       <font class="Apple-style-span" color="#ff0000"><span class="hljs-tag">Web</span> 端模板文件</font>
│  │  │  └─ <span class="hljs-tag">setting</span><span class="hljs-class">.html</span>                   模块全局配置模板文件
│  │  ├─ <span class="hljs-tag"><font class="Apple-style-span" color="#ff0000"><b>inc</b></font></span>                                引用的 <span class="hljs-tag">php</span> 文件目录
│  │  │  ├─ <span class="hljs-tag">mobile</span>                         <span class="hljs-tag">Mobile</span>端目录
│  │  │  │  ├─ <span class="hljs-tag">xxx</span><span class="hljs-class">.inc</span><span class="hljs-class">.php</span>                微站入口
│  │  │  │  └─ ...                        .
│  │  │  └─ <span class="hljs-tag">web</span>                            <span class="hljs-tag">Web</span>端模板目录
│  │  │      ├─ <span class="hljs-tag">xxx</span><span class="hljs-class">.inc</span><span class="hljs-class">.php</span>                微站管理入口
│  │  │      └─ ...                        .
│  │  ├─ <span class="hljs-tag">icon</span><span class="hljs-class">.jpg</span>                           模块图标
│  │  ├─ <span class="hljs-tag">preview</span><span class="hljs-class">.jpg</span>                        模块预览
│  │  ├─ <span class="hljs-tag">manifest</span><span class="hljs-class">.xml</span>                       安装清单
│  │  ├─ <font class="Apple-style-span" color="#ff00ff"><span class="hljs-tag">module</span><span class="hljs-class">.php</span></font>                         <font class="Apple-style-span" color="#ff0000">模块设置</font>
│  │  ├─ <span class="hljs-tag">processor</span><span class="hljs-class">.php</span>                      消息处理
│  │  ├─ <span class="hljs-tag">receiver</span><span class="hljs-class">.php</span>                       消息订阅
│  │  └─ <font class="Apple-style-span" color="#ff0000"><b><span class="hljs-tag">site</span><span class="hljs-class">.php</span></b></font>                           微站页面（主要的逻辑文件）
│  └─ ...</code></pre></pre></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><p>icon.jpg &nbsp; &nbsp; &nbsp;模块图标</p><p>preview.jpg &nbsp; 模块预览</p><p>manifest.xml &nbsp;安装清单，须此文件进行本地安装</p><p>module.php &nbsp; &nbsp;模块设置</p><p>processor.php 消息处理页面，所有用消息的方式反馈给微擎用户的，都在此文件中做处理</p><p>receiver.php &nbsp;消息订阅文件，处理用户所发送的信息，但不能响应用户所发出的消息</p><p>site.php &nbsp; &nbsp; &nbsp;微站页面</p></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas">[Ref 1]&nbsp;<a href="http://www.kancloud.cn/donknap/we7/135256">微擎手册：模块开发-目录结构</a></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><br></font></div></div><script type="text/javascript" language="javascript" src="jquery.js"></script><script type="text/javascript" language="javascript" src="itemlink.js"></script></body></html>